package com.ruoyi.common.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 数据库配置
 */
@Component
public class DbConfig {


    public static String JDBC_DRIVER;

    @Value("${spring.datasource.driverClassName}")
    public void setJdbcDriver(String driver){
        JDBC_DRIVER = driver;
    }

    public static String JDBC_URL;

    @Value("${spring.datasource.druid.master.url}")
    public void setJdbcUrl(String url){
        JDBC_URL = url;
    }

    public static String JDBC_USERNAME;

    @Value("${spring.datasource.druid.master.username}")
    public void setJdbcUsername(String username){
        JDBC_USERNAME = username;
    }

    public static String JDBC_PASSWORD;

    @Value("${spring.datasource.druid.master.password}")
    public void setJdbcPassword(String password){
        JDBC_PASSWORD = password;
    }





}
